/*
 * SceneMaster.fx
 *
 * Created on 03.12.2009, 13:01:23
 */

package org.zhgames.zhciv.client.gui.scenes;

import javafx.scene.*;
import org.zhgames.zhciv.client.gui.scenes.*;

/**
 * @author Vitaliy_Turilkin
 */

public class SceneMaster {
    public var current_scene:Scene;

    public function changeScene(sc:Scene):Void{
        current_scene = sc;
    }

    public function showMenu():Void{
        def menu:Scene = Scene{
            content:MenuScene{
                    sceneMaster:this
                    }
        };
        current_scene = menu;
    }

    public function showHelloScene():Void{
        def hello:Scene = Scene{
            content: HelloScene{
                    sceneMaster:this
                    }
        }
        current_scene = hello;
    }

    public function showGameScene():Void{
        def game:Scene = Scene{
            content: GameScene{
                sceneMaster:this
            }
        }
        current_scene = game;
    }
}
